package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import server.business.pojo.IsBackBlood;
import server.business.service.IsBackBloodService;
import server.business.utils.results.zy.Result;

import java.util.List;

/**
 * @Author: 赵越
 * @Description: 是否允许退血
 * @CreateTime: 2023-03-28  09:21
 */
@Controller
@RequestMapping("/isbackblood")
public class IsBackBloodController {

    @Autowired
    private IsBackBloodService isBackBloodServiced;

    @RequestMapping("/normal/query")
    @ResponseBody
    public Result queryData() {
        List<IsBackBlood> list = isBackBloodServiced.list();
        return Result.success(list);
    }

}
